package com.zys.asseter.mapper;

import com.zys.asseter.domain.dto.UserDTO;
import com.zys.asseter.domain.pojo.UserEntity;
import com.zys.asseter.domain.vo.QueryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {


    List<UserEntity> selectAll();

    String getCharacter(Integer age);

    List<QueryVo> getCharacterAll();

    List<UserEntity> selectCondition(@Param("name") String name,@Param("age") Integer age);

    UserEntity selectById(Integer id);

    void deleteById(@Param("ids") List<Integer> ids);

    void insert(UserEntity userEntity);

    void update(@Param("name") String name,@Param("count") String count);


    Integer countByName(String name);

    List<UserDTO> selectNameAge();

    String getCharacterByName(String name);
}
